package com.yeyks.dal.dao;

import com.yeyks.dal.domain.CompanyInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompanyInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CompanyInfo record);

    CompanyInfo selectByPrimaryKey(Integer id);

    List<CompanyInfo> selectAll();

    int updateByPrimaryKey(CompanyInfo record);

    int updateByBizName(CompanyInfo record);
//
//    int updateByBizNo(CompanyInfo record);

    List<CompanyInfo> selectByAny(@Param("id") int id, @Param("key") String key);

    int deleteByAny(@Param("id") int id, @Param("key") String key);

    int insertReturnId(CompanyInfo record);

    List<CompanyInfo> selectByBizNameOrBizId(@Param("bizName") String bizName, @Param("bizNo") String bizNo);
}